#include <time.h>
#include "Renderer.h"

#ifndef __TIMER_H__
#define __TIMER_H__

class ENGINE_API Timer{
private:
	/*unsigned long frequency;
	unsigned long ActualTime;*/
	double lastTime;
	double deltaTime;
	
	clock_t now, last;

	void firstMeasure();
	void Measure();

	Timer();
	static void destroyInstance();
public:
	static Timer* instance;
	static Timer* getInstance();

	double getDT();
	float getFPS();
	

	friend class Renderer;
};
#endif